import { useContext } from "react";
import ContextTodo from "../../../../store/contextTodo";
const ContextChild1= () => {
   const context = useContext(ContextTodo)
     console.log('context初始值',context )
    return (<div>
      子组件1，使用hook获取context：
      <div>
      {
      context.todoList.map((item, key) => <p key={key}>{item.title}-level:{item.level}</p>)
      }
      </div>
    </div>);
}
 
export default ContextChild1;